
//模拟登录接口，返回用户对象
export const login = (account: string, password: string): any => {
    if(account === 'admin' && password === '123456'){
        return {
            id: 2,
            account: 'admin',
            realName: '管理员'
        }
    }
    // 返回默认用户对象
    return {
        id: -1,
        account: '',
        realName: '未知用户'
    };
};
